Imports System.Data.SqlClient

Partial Class FanClubMatchReport
    Inherits System.Web.UI.Page

    Sub SqlDataSource1_Updated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs)

        FormView1.ChangeMode(FormViewMode.ReadOnly)
        FormView1.DataBind()

    End Sub

    Sub SqlDataSource1_Inserted(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs)

        FormView1.ChangeMode(FormViewMode.ReadOnly)
        FormView1.DataBind()

    End Sub

    Protected Sub AddReport_Click(ByVal sender As Object, ByVal e As System.EventArgs)

        FormView1.ChangeMode(FormViewMode.Insert)
        FormView1.DataBind()

    End Sub

End Class
